//
// Created by 32827 on 2024/7/3.
//

#ifndef STM32F407RTOS_YZ_ADC_H
#define STM32F407RTOS_YZ_ADC_H
#include "yz.h"

YZF_RESULT yz_adc_once_for_yourself_init(YZF_ADC_POINTER adc,uint16_t channel,YZF_GPIO_POINTER port,YZF_GPIO_PIN pin);
uint16_t yz_adc_once_for_yourself_get(YZF_ADC_POINTER adc);
YZF_RESULT yz_adc_once_for_yourself_deInit(YZF_ADC_POINTER adc);

YZF_RESULT yz_adc_data_for_dma(YZF_GPIO_POINTER gpio,YZF_GPIO_PIN gpio_pin,YZF_ADC_POINTER adc,uint16_t adc_channel,uint16_t dac_tsel,YZF_DMA_POINTER dma,YZF_DMA_CHANNEL_POINTER stream,uint16_t dma_channel,YZF_TIM_POINTER tim,uint16_t prescaler,uint16_t autoNumber,uint32_t data,uint16_t count);
YZF_RESULT yz_adc_data_for_dma6(YZF_ADC_POINTER adc,uint16_t adc_channel1,uint16_t adc_channel2,uint16_t adc_channel3,uint16_t adc_channel4,uint16_t adc_channel5,uint16_t adc_channel6,uint16_t dac_tsel,YZF_DMA_POINTER dma,YZF_DMA_CHANNEL_POINTER stream,uint16_t dma_channel,YZF_TIM_POINTER tim,uint16_t prescaler,uint16_t autoNumber,uint32_t data,uint16_t count);
#endif //STM32F407RTOS_YZ_ADC_H
